package pl.edu.agh.mwo.model.dataimport;

import java.io.*;
import java.util.*;
import java.util.regex.*;

import pl.edu.agh.mwo.model.MenadzerPracownikow;

public class FolderReader {
	
	File folder;
	MenadzerPracownikow mp;

	public FolderReader(File folder, MenadzerPracownikow mp) {
		
		this.folder = folder;
		this.mp = mp;
	}
	
	
	public void xlsFilesRead(File folder) throws Exception{
		
		//File[] listall = 
		//folder.isDirectory()
		
		
		
		File[] list = folder.listFiles();
		
		for (File s : list){
			if (s.isDirectory()) {
				
				xlsFilesRead(s);
				
			}
			else{
					
			//System.out.println(s);
			new ExcelFileReader(s, mp).read();
		}
		
			
		}		
		
		
	}

	
}
